<?php
/**
 * Created by PhpStorm.
 * User: hisheng
 * Date: 2017/6/6
 * Time: 10:48
 */

Route::get('/dashboard', 'DefaultController@dashboard');
Route::get('/left_menu', 'DefaultController@leftMenu');

Route::get('/loans','LoanController@index');
Route::group(['prefix' => 'loan'], function () {
    Route::get('/add','LoanController@add');
    Route::get('/delete/{id}','LoanController@down');
    Route::get('/{id}','LoanController@edit');
    Route::post('/add','LoanController@postAdd');
});

Route::get('/banners','BannerController@index');
Route::group(['prefix' => 'banner'], function () {
    Route::get('/add','BannerController@add');
    Route::get('/delete/{id}','BannerController@delete');
    Route::get('/top/{id}','BannerController@top');
    Route::get('/{id}','BannerController@edit');
    Route::post('/add','BannerController@postAdd');
});

